<?php

namespace App\Models;

use App\Observers\ExChangeObserver;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ExChanging extends Model
{
    use HasFactory;

    protected $guarded = [];

    //在模型中注册观察者
    public static function boot()
    {
        parent::boot();

        self::observe(ExChangeObserver::class);
    }
}
